package com.zj.utils.eo;

import com.zj.utils.base.IdEnum;

import java.util.Calendar;

/**
 * @author Mr. xi.yang<br/>
 * @version V1.0 <br/>
 * @description: 星期 <br/>
 * @date 2017-09-26 下午 3:10 <br/>
 */
public enum Week implements IdEnum {
    /**
     * 日
     */
    SUNDAY(Calendar.SUNDAY),
    /**
     * 一
     */
    MONDAY(Calendar.MONDAY),
    /**
     * 二
     */
    TUESDAY(Calendar.TUESDAY),
    /**
     * 三
     */
    WEDNESDAY(Calendar.WEDNESDAY),
    /**
     * 四
     */
    THURSDAY(Calendar.THURSDAY),
    /**
     * 五
     */
    FRIDAY(Calendar.FRIDAY),
    /**
     * 六
     */
    SATURDAY(Calendar.SATURDAY),
    ;

    private int id;


    Week(Integer id) {
        this.id = id;
    }

    @Override
    public int getId() {
        return id;
    }

    public String getShortName() {
        return name().substring(0, 3);
    }
}